@import './base.css';

#app {
  height: 100%;
}

// 滚动条兼容火狐
* {
  scrollbar-width: thin;
  scrollbar-color: #b4bbc5 #f5f5f5;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* 样式滚动条滑块 */
::-webkit-scrollbar-thumb {
  background-color: #b4bbc5;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
}

/* 样式滚动条轨道 */
::-webkit-scrollbar-track {
  background-color: #f5f5f5;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #919191;
}

html[theme='light'] {
  .ant-notification {
    color: rgba(0, 0, 0, 0.88);

    .ant-notification-notice {
      background: #ffffff;
      box-shadow:
        0 6px 16px 0 rgba(0, 0, 0, 0.08),
        0 3px 6px -4px rgba(0, 0, 0, 0.12),
        0 9px 28px 8px rgba(0, 0, 0, 0.05);

      .ant-notification-notice-message {
        color: rgba(0, 0, 0, 0.88);
      }

      .ant-notification-notice-close {
        color: rgba(0, 0, 0, 0.45);
      }
    }
  }
}

html[theme='dark'] {
  .ant-notification {
    color: rgba(255, 255, 255, 0.85);

    .ant-notification-notice {
      background: #1f1f1f;
      box-shadow:
        0 6px 16px 0 rgba(0, 0, 0, 0.08),
        0 3px 6px -4px rgba(0, 0, 0, 0.12),
        0 9px 28px 8px rgba(0, 0, 0, 0.05);

      .ant-notification-notice-message {
        color: rgba(255, 255, 255, 0.85);
      }

      .ant-notification-notice-close {
        color: rgba(255, 255, 255, 0.45);
      }
    }
  }
}

.ant-modal .ant-modal-content {
  padding: 0;
  border-radius: 8px;
  position: relative;
  background-color: var(--color--bg-base);
  background-clip: padding-box;
  border: 0;
  border-radius: 8px;
  box-shadow:
    0 6px 16px 0 rgba(0, 0, 0, 0.08),
    0 3px 6px -4px rgba(0, 0, 0, 0.12),
    0 9px 28px 8px rgba(0, 0, 0, 0.05);
  pointer-events: auto;
  padding: 0 !important;
}

.ant-modal .ant-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.ant-modal .ant-modal-body {
  padding: 10px 20px;
}

.ai-modal .ant-modal-body {
  padding: 24px 28px 24px 24px;
}

.ant-modal .ant-modal-footer {
  padding: 10px 16px;
  border-top: 1px solid #f0f0f0;
  margin-top: 0;
}

.page-content {
  height: 100%;

  .ant-card-body {
    height: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
  }

  .header {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .main {
    margin-top: 16px;
    flex: 1 1 auto;
    overflow: hidden auto;
  }

  .search-form .ant-form-item {
    margin-bottom: 10px;
  }
}

.ant-table .ant-table-cell .ant-btn-link {
  padding: 4px 6px 4px 0;
}

.modal-form .ant-input,
.modal-form .ant-select.ant-select-in-form-item {
  width: 100%;
}

.ant-modal-root .ant-modal-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
}

.ant-modal-root .ant-modal-wrap {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: auto;
  outline: 0;
  -webkit-overflow-scrolling: touch;
  z-index: 1000;
}

.ant-modal {
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0;
  color: var(--color-text-base);
  font-size: 14px;
  line-height: 1.5714285714285714;
  list-style: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
  pointer-events: none;
  position: relative;
  top: 100px;
  width: auto;
  max-width: calc(100vw - 32px);
  padding-bottom: 24px;
}

.ant-modal .ant-modal-close {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 1010;
  padding: 0;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  background: transparent;
  border-radius: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  outline: 0;
  cursor: pointer;
  transition:
    color 0.2s,
    background-color 0.2s;
}

[theme='dark'] .ant-modal .ant-modal-close {
  color: rgba(255, 255, 255, 0.45);
}

[theme='dark'] .ant-modal .ant-modal-close:hover {
  color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

[theme='light'] .ant-modal .ant-modal-close {
  color: rgba(0, 0, 0, 0.45);
}

[theme='light'] .ant-modal .ant-modal-close:hover {
  color: rgba(0, 0, 0, 0.88);
  background-color: rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.ant-modal-confirm .ant-modal-confirm-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.ant-modal-confirm-confirm .ant-modal-confirm-body > .anticon {
  color: #faad14;
}

.ant-modal-confirm .ant-modal-confirm-body > .anticon {
  flex: none;
  margin-right: 12px;
  font-size: 22px;
}

.css-dev-only-do-not-override-6xsnlx.ant-modal-confirm
  .ant-modal-confirm-body
  .ant-modal-confirm-title {
  flex: 0 0 100%;
  display: block;
  overflow: hidden;
  color: var(--color-text-base);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
}

.ant-modal-confirm .ant-modal-confirm-body > .anticon + .ant-modal-confirm-title {
  flex: 1;
}

.ant-modal-confirm
  .ant-modal-confirm-body
  > .anticon
  + .ant-modal-confirm-title
  + .ant-modal-confirm-content {
  margin-left: 34px;
}

.ant-modal-confirm .ant-modal-confirm-body .ant-modal-confirm-title + .ant-modal-confirm-content {
  margin-top: 8px;
  flex-basis: 100%;
  max-width: calc(100% - 34px);
}

.ant-modal-confirm .ant-modal-confirm-body .ant-modal-confirm-content {
  color: var(--color-text-base);
  font-size: 14px;
}

.ant-modal-confirm .ant-modal-confirm-btns {
  text-align: end;
  margin-top: 12px;
}

.ant-modal-confirm .ant-modal-confirm-btns .ant-btn + .ant-btn {
  margin-bottom: 0;
  margin-left: 8px;
}
